package com.zoffy.bi.manager;


import com.yupi.yucongming.dev.client.YuCongMingClient;
import com.yupi.yucongming.dev.common.BaseResponse;
import com.yupi.yucongming.dev.model.DevChatRequest;
import com.yupi.yucongming.dev.model.DevChatResponse;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class AiManager {
    @Resource
    private YuCongMingClient yuApiClient;
    public BaseResponse<DevChatResponse> doChat(String message){
        DevChatRequest devChatRequest=new DevChatRequest();
        devChatRequest.setModelId(1724726744298463233L);
        devChatRequest.setMessage(message);
        return yuApiClient.doChat(devChatRequest);
    }
}
